package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.EnergySpcDao;
import com.platform.entity.EnergySpcEntity;
import com.platform.service.EnergySpcService;

/**
 * SPC记录表Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-05-25 23:38:11
 */
@Service("energySpcService")
public class EnergySpcServiceImpl implements EnergySpcService {
    @Autowired
    private EnergySpcDao energySpcDao;

    @Override
    public EnergySpcEntity queryObject(Long id) {
        return energySpcDao.queryObject(id);
    }

    @Override
    public List<EnergySpcEntity> queryList(Map<String, Object> map) {
        return energySpcDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return energySpcDao.queryTotal(map);
    }

    @Override
    public int save(EnergySpcEntity energySpc) {
        return energySpcDao.save(energySpc);
    }

    @Override
    public int update(EnergySpcEntity energySpc) {
        return energySpcDao.update(energySpc);
    }

    @Override
    public int delete(Long id) {
        return energySpcDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return energySpcDao.deleteBatch(ids);
    }

    @Override
    public Map<String, Object> queryRecordCount(Map<String, Object> param) {
        return energySpcDao.queryRecordCount(param);
    }

    @Override
    public Map<String, Object> queryWagerCount(Map<String, Object> param) {
        return energySpcDao.queryWagerCount(param);
    }
}
